const { request }=require('./request.js');

//项目中用到的各种业务接口的封装

module.exports={

  //商品分类接口，张三
  goodsCate:()=> {

    return request('shop/goods/category/all','GET','',true)

  },
  //banner图接口
  getBanner:()=>{},


  //商品详情接口,李四
  getDetail:(id)=>{

    return request('shop/goods/detail','GET',{id:id},true)
  },
  //添加收藏
  addFav:(goodsId,token)=>{
    return request('shop/goods/fav/add', 'POST', { goodsId,token},true)
  }

}